<%@ page import="database.OperatoerDTO"%>

<!DOCTYPE html>
<html>
<head>
<title><%=request.getAttribute("title")%></title>
<style type="text/css">
<%@ include file="/WEB-INF/html/style.css" %>
</style>
</head>
<body>
	<div class="wrapper">
		<div id="sample-container">
			<div id="layout-one-fixed">
				<div id="container">
					<div id="header">
						<h1>Weighing system</h1>
					</div>
					<div id="navigation">
						<ul>
							<%
								if (request.getUserPrincipal() != null) {
									out.print("<li><a href=\"" + request.getContextPath()
											+ "/\">Home</a></li>");

									if (request.isUserInRole("1")) {
										out.print("<li><a href=\""
												+ request.getContextPath()
												+ "/Operator/OperatorHome\">User administration</a></li>");
										out.print("<li><a href=\""
												+ request.getContextPath()
												+ "/Rawmat/RawmatHome\">Raw material</a></li>");
										out.print("<li><a href=\"" + request.getContextPath()
												+ "/Recept/ReceptHome\">Prescription</a></li>");
										out.print("<li><a href=\""
												+ request.getContextPath()
												+ "/Rawbatch/RawbatchHome\">Raw material batch</a></li>");
										out.print("<li><a href=\""
												+ request.getContextPath()
												+ "/Productbatch/ProductbatchHome\">Product batch</a></li>");
									}
									if (request.isUserInRole("2")) {
										out.print("<li><a href=\""
												+ request.getContextPath()
												+ "/Rawmat/RawmatHome\">Raw material</a></li>");
										out.print("<li><a href=\"" + request.getContextPath()
												+ "/Recept/ReceptHome\">Prescription</a></li>");
										out.print("<li><a href=\""
												+ request.getContextPath()
												+ "/Rawbatch/RawbatchHome\">Raw material batch</a></li>");
										out.print("<li><a href=\""
												+ request.getContextPath()
												+ "/Productbatch/ProductbatchHome\">Product batch</a></li>");
									}
									if (request.isUserInRole("3")) {
										out.print("<li><a href=\""
												+ request.getContextPath()
												+ "/Rawbatch/RawbatchHome\">Raw material batch</a></li>");
										out.print("<li><a href=\""
												+ request.getContextPath()
												+ "/Productbatch/ProductbatchHome\">Product batch</a></li>");
									}
									out.print("<li><a href=\"" + request.getContextPath()
											+ "/Logout\">Logout" + " (" + request.getUserPrincipal().getName() + ")" + "</a></li>");
								}
							%>
						</ul>
					</div>
					<div id="content">
